/*
 * Sprite.h
 *
 *  Created on: 08/01/2012
 *      Author: Mariano
 */
#include "Common.h"
#ifndef SPRITE_H_
#define SPRITE_H_

class Sprite {
public:
	Sprite(SDL_Surface* texture, int frameCount, int spriteW, int spriteH);
	virtual ~Sprite();
	int getFrameCount() const;
	int getSpriteH() const;
	int getSpriteW() const;
	SDL_Surface *getTexture() const;
	void setTexture(SDL_Surface *texture);

	int getActualFrame() const;
	void nextFrame();

private:
	SDL_Surface * texture;
	int frameCount;
	int spriteW;
	int spriteH;
	int actualFrame;
};

#endif /* SPRITE_H_ */
